var appModule = angular.module("appModule", ["ngRoute"], function(){
	console.log("bookstore app init success");
});

appModule.config(['$routeProvider',function($routeProvider) {
	$routeProvider.when("/hello",{
		templateUrl: "tpls/hello.html",
		controller: "helloController"
	}).when("/list",{
		templateUrl: "tpls/list.html",
		controller: "listController"
	}).otherwise({
		redirectTo: "/hello"
	});
}]);